import http from '../http/http.js';
import qs from "qs";

export default {
	getRoomLists: function (current, size) {
		return http({
			url: "/room/category/page",
			method: 'get',
			params: {
				current,
				size
			}
		}).catch((e) => {
			return e
		});
	},
	getRoomTypes: function () {
		return http({
			url: "/room/type/tree",
			method: 'get',
			params: {}
		}).catch((e) => {
			return e
		});
	},
};
